#!/usr/bin/env ts-node

import { Command } from 'commander';
import { Options } from './model';

const program = new Command();

program
  .version('1.0.0')
  .name('wsdl2code')
    .description('A CLI tool for generating code from WSDL and XSD files')
  .option('-c, --cache-path <path>', 'Path to cache WSDL and XSD files')
  .option('-u, --url <url>', 'URL of the WSDL or XSD file to cache')
 .option('-i, --input-file <file>', 'A wsdl url list file')

program.parse(process.argv);

const options: Options = program.opts();

for(const key in options) {
    console.log(`${key}: ${options[key]}`);
}

// 这里可以添加更多的 CLI 功能